/* 
 * File:   ExamTopic.cpp
 * Author: user
 * 
 * Created on July 25, 2014, 6:15 AM
 */

#include "ExamTopic.h"

ExamTopic::ExamTopic()
{
    _topic = "";
    _desc = "";   
}

ExamTopic::ExamTopic(string topic, string desc)
{
    _topic = topic;
    _desc = desc;
}
ExamTopic::ExamTopic(const ExamTopic& orig) 
{
    this->_topic = orig._topic;
    this->_desc = orig._desc;
    this->_questions = orig._questions;
}

ExamTopic::~ExamTopic() 
{
}

void ExamTopic::setID(int id)
{
    _ID = id;
}

void ExamTopic::setTopic(string topic)
{
    _topic = topic;
}

void ExamTopic::setDesc(string desc)
{
    _desc = desc;
}

void ExamTopic::setSelectedQuestionID(int id)
{
    _selectedQuestionID = id;
}

int ExamTopic::getID()
{
    return _ID;
}

string ExamTopic::getTopic()
{
    return _topic;
}

string ExamTopic::getDesc()
{
    return _desc;
}

int ExamTopic::getSelectedQuestionID()
{
    return _selectedQuestionID;
}

vector<TestQuestion>& ExamTopic::getQuestions()
{
    return _questions;
}

void ExamTopic::addQuestion(TestQuestion question)
{
    _questions.push_back(question);
}


